package com.liner;

import java.util.Scanner;

public class IfElseDemo {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入消费金额：");
        double price = scanner.nextDouble();
        if (price >= 500) {
            System.out.println("本店活动满500打9折");
            price *= 0.9;
        }else {
            System.out.println("本店活动不满500打骨折");
        }
        System.out.println("最终消费金额为:" + price);


        System.out.print("请输入考试成绩：");
        int score = scanner.nextInt();
        if (score > 0 && score < 100) {
            System.out.println("成绩合法");
        }else {
            System.out.println("成绩不合法");
        }
        System.out.println("继续执行.....");




    }
}
